set(QT_USE_QTOPENGL TRUE)

include(${QT_USE_FILE})

include_directories(. ../../src ${CMAKE_CURRENT_BINARY_DIR} ${QT_INCLUDES} ${EIGEN2_INCLUDE_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR})

set(bge_lighting_SRCS
  main.cpp
  movinglight.cpp
  overlay.cpp
)

set(bge_lighting_HDRS
  movinglight.h
)

qt4_wrap_cpp(bge_lighting_MOC ${bge_lighting_HDRS})
qt4_add_resources(bge_lighting_RC resources.qrc)

add_executable(bge_lighting ${bge_lighting_SRCS} ${bge_lighting_MOC} ${bge_lighting_RC})

target_link_libraries(bge_lighting bge ${QT_LIBRARIES})

add_dependencies(bge_lighting bge)
